//
//  YSGAdvisoryStartAndEndCell.swift
//  EyeVisionForPatients
//
//  Created by PMC on 2020/4/11.
//  Copyright © 2020 QDSG. All rights reserved.
//

import UIKit

class YSGAdvisoryStartAndEndCell: UITableViewCell {
    
    @IBOutlet private weak var sendTimeLabel: UILabel! {
        didSet {
            sendTimeLabel.textColor = .textLight
        }
    }
    
    @IBOutlet private weak var titleLabel: UILabel!
    
    @IBOutlet private weak var oneDotLabel: UILabel!
    
    @IBOutlet private weak var twoDotLabel: UILabel!

    override func awakeFromNib() {
        super.awakeFromNib()
        backgroundColor = .clear
        contentView.backgroundColor = .clear
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
    func configure(with time: String, start: Bool) {
        if start {
            sendTimeLabel.text = time
            titleLabel.text = "问诊开始"
            oneDotLabel.text = "1、问诊期间，您与医生对话不限次数"
            twoDotLabel.text = "2、问诊最长24小时，到期将自动结束"
        } else {
            sendTimeLabel.text = time
            titleLabel.text = "问诊结束"
            oneDotLabel.text = "1、问诊结论已发出，本次问诊结束"
            twoDotLabel.text = "2、服务评价、意见反馈请点击表扬与投诉"
        }
    }
}
